import { createRouter, createWebHashHistory } from 'vue-router'

const routes = [
  {
    path: '/',
    redirect: '/class'
  },
  {
    path: '/class',
    name: 'Class',
    component: () => import('../views/ClassManagement.vue')
  },
  {
    path: '/course',
    name: 'Course',
    component: () => import('../views/CourseManagement.vue')
  },
  {
    path: '/statistics',
    name: 'Statistics',
    component: () => import('../views/StatisticsManagement.vue')
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router 